<template>
  <div>
    <h2>组件2</h2>
    {{ this.$store.state.age }}
    <button @click="changeAge">chagneAge 异步</button>
  </div>
</template>
<script>
export default {
  methods: {
    changeAge() {
      // setTimeout(()  => {
        // this.$store.commit("changeAgeMutation", 66)
      // },1000)
       this.$store.dispatch("changeAgeActionAsync",66)

    }
  }
}
</script>